- name: astra-ad-sssd-client package
  ansible.builtin.apt:
    name: astra-ad-sssd-client
    state: latest

- name: join
  ansible.builtin.shell: "echo {{ realm_password }} | astra-ad-sssd-client -d okb3.local -u {{ realm_user }} -px"
  when: realmcheck.rc != 0
  notify: reboot
